package com.wps.synergy.rpc
{
	import flash.utils.Dictionary;
	
	import com.wps.text.shared.cooperative.ICompoundOperation;
	
	public interface ISynergy
	{
		function shareTo(userId: String, sharers:Array, writable:Boolean): void;
		/**
		 * 在协作不存在的情况上创建一个新的协作， 否则加入原有的协作 
		 * @param fileId 协作文件Id
		 * 
		 */		
		function join(): void;
		function kick(userId:String): void;
		function exit(): void;
		
		function sendOperation(operation: ICompoundOperation): void;
		function saved(stateVec:Dictionary): void;
	}
}